﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_MasterPageAdmin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogout_Click(object sender, ImageClickEventArgs e)
    {
        Session["Employee"] = null;
        Response.Redirect("login.aspx");
    }
    protected void imgsearch_Click(object sender, ImageClickEventArgs e)
    {
        switch (chontk.Value)
        {
            case "1":
                Response.Redirect("quanlytintuc.aspx?tintuctk="+txttimkiem.Value);
                break;
            case "2":
                Response.Redirect("quanlytuvan.aspx?tuvantk=" + txttimkiem.Value);
                break;
            case "3":
                Response.Redirect("quanlydaily.aspx?dailytk=" + txttimkiem.Value);
                break;
            default:
                Response.Redirect("quanlysanpham.aspx?sanphamtk=" + txttimkiem.Value);
                break;
        }
    }
}
